package com.zmc.order.feign;

import com.zmc.common.domain.freight.FreightCreateOrder;
import com.zmc.common.domain.freight.FreightQueryPrice;
import com.zmc.common.domain.vo.third.PayRefundVo;
import com.zmc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author：zmc
 * @Date：2024/12/23 14:44
 */

@FeignClient("mall-third")
public interface ThirdFeignService {


    @PostMapping("/third/pay/refund")
    public R refund(@RequestBody PayRefundVo vo);

    @RequestMapping("/third/freight/create")
    public R createOrder(@RequestBody FreightCreateOrder freightCreateOrder);

    @PostMapping("/third/freight/query")
    public R freightQuery(@RequestBody FreightQueryPrice freightQueryPrice);

    @GetMapping("/third/freight/cancel/{orderSn}")
    public R cancelFreight(@PathVariable("orderSn") String orderSn);
}
